package com.zhang.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("relations")
public class Relation {

    @TableId(value = "relation_id", type = IdType.AUTO)
    private Long relationId;

    @TableField("person_id1")
    private Long personId1;

    @TableField("person_id2")
    private Long personId2;

    @TableField("relation_group_id")
    private Integer relationGroupId;

    @TableField("relation_type_id")
    private Integer relationTypeId;

    @TableField("is_deleted")
    private Boolean isDeleted;
}